#ifndef DIALOGDOUBLEAXISPROPERTIES_H
#define DIALOGDOUBLEAXISPROPERTIES_H

#include <QDialog>
#include "core/sdoubleaxis.h"

namespace Ui {
    class DialogDoubleAxisProperties;
}

class DialogDoubleAxisProperties : public QDialog
{
    Q_OBJECT

public:

    explicit DialogDoubleAxisProperties(QWidget *parent = 0);

    ~DialogDoubleAxisProperties();

    double min() const;

    double max() const;

    double increment() const;

    int minorTicks() const;

    StatS::SDoubleAxis::Orientation labelsOrientation() const;

    QFont labelsFont() const;

    char labelsFormat() const;

    int labelsPrecision() const;


    bool isLabelsVisible() const;

    bool isMajorTicksVisible() const;

    bool isMinorTicksVisible() const;

    bool isMajorGridVisible() const;

    bool isMinorGridVisible() const;


    bool setMinimum(double min);

    bool setMaximum(double max);

    bool setIncrement(double increment);

    bool setMinorTicks(int ticks);

    bool setMinorTicksVisible(bool state);

    bool setMinorGridVisible(bool state);

    bool setMajorTicksVisible(bool state);

    bool setMajorGridVisible(bool state);

    bool setLabelsVisible(bool state);

    bool setLabelsOrientation(StatS::SDoubleAxis::Orientation orientation);

    bool setLabelsFont(QFont font);

    bool setLabelsFormat(char format);

    bool setLabelsPrecision(int precision);


private slots:
    void on_pushFont_clicked();

private:

    Ui::DialogDoubleAxisProperties *ui;

    QFont _font;
};

#endif // DIALOGDOUBLEAXISPROPERTIES_H
